package com.rocching.easychat.core;

import android.content.Context;
import android.text.Spannable;
import android.view.ViewGroup;

import java.util.List;

import io.rong.imkit.conversation.RongConversationActivity;
import io.rong.imkit.conversation.messgelist.provider.BaseMessageItemProvider;
import io.rong.imkit.model.UiMessage;
import io.rong.imkit.widget.adapter.IViewProviderListener;
import io.rong.imkit.widget.adapter.ProviderManager;
import io.rong.imkit.widget.adapter.ViewHolder;
import io.rong.imlib.model.MessageContent;
import io.rong.message.ProfileNotificationMessage;

public class ProfileNotificationMessageProvider extends BaseMessageItemProvider<ProfileNotificationMessage> {
    public ProfileNotificationMessageProvider() {
        mConfig.showContentBubble = false;
        mConfig.showPortrait = false;
        mConfig.showWarning = false;
        mConfig.showProgress = false;
        mConfig.showSummaryWithName = false;
        mConfig.showTime = false;
    }

    @Override
    protected ViewHolder onCreateMessageContentViewHolder(ViewGroup parent, int viewType) {
        return null;
    }

    @Override
    protected void bindMessageContentViewHolder(ViewHolder holder, ViewHolder parentHolder, ProfileNotificationMessage profileNotificationMessage, UiMessage uiMessage, int position, List<UiMessage> list, IViewProviderListener<UiMessage> listener) {

    }

    @Override
    protected boolean onItemClick(ViewHolder holder, ProfileNotificationMessage profileNotificationMessage, UiMessage uiMessage, int position, List<UiMessage> list, IViewProviderListener<UiMessage> listener) {
        return false;
    }

    @Override
    protected boolean isMessageViewType(MessageContent messageContent) {
        return messageContent instanceof ProfileNotificationMessage;
    }

    @Override
    public Spannable getSummarySpannable(Context context, ProfileNotificationMessage profileNotificationMessage) {
        return null;
    }
}
